package com.lg.atp.entity;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.Date;

import org.apache.commons.lang3.time.DateFormatUtils;

public class TblTestTask implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 6081608819552914337L;
	
	private Long id;
	
	private String taskNum;
	
	private String taskName;
	
	private Long appId;
	
	private String appName;
	
	private Integer testType;
	
	private Integer tryNum;
	
	private Integer scheduleType;
	
	private Integer scheduleFrequency;
	
	private String scheduleCron;
	
	private Timestamp runStartTime;
	
	private Timestamp runEndTime;
	
	private Date planStartDate;
	
	private String planStartDateStr;
	
	private Date planEndDate;
	
	private String planEndDateStr;
	
	
	private Integer testStatus;
	
	private Long createUserId;
	
	private Timestamp createTime;
	
	private String taskCaseIds;
	
	private String taskDeviceIds;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getTaskNum() {
		return taskNum;
	}

	public void setTaskNum(String taskNum) {
		this.taskNum = taskNum;
	}

	public String getTaskName() {
		return taskName;
	}

	public void setTaskName(String taskName) {
		this.taskName = taskName;
	}

	public Long getAppId() {
		return appId;
	}

	public void setAppId(Long appId) {
		this.appId = appId;
	}

	public Integer getTestType() {
		return testType;
	}

	public void setTestType(Integer testType) {
		this.testType = testType;
	}

	public Integer getTryNum() {
		return tryNum;
	}

	public void setTryNum(Integer tryNum) {
		this.tryNum = tryNum;
	}

	public Integer getScheduleType() {
		return scheduleType;
	}

	public void setScheduleType(Integer scheduleType) {
		this.scheduleType = scheduleType;
	}

	public Integer getScheduleFrequency() {
		return scheduleFrequency;
	}

	public void setScheduleFrequency(Integer scheduleFrequency) {
		this.scheduleFrequency = scheduleFrequency;
	}

	public String getScheduleCron() {
		return scheduleCron;
	}

	public void setScheduleCron(String scheduleCron) {
		this.scheduleCron = scheduleCron;
	}

	public Timestamp getRunStartTime() {
		return runStartTime;
	}

	public void setRunStartTime(Timestamp runStartTime) {
		this.runStartTime = runStartTime;
	}

	public Timestamp getRunEndTime() {
		return runEndTime;
	}

	public void setRunEndTime(Timestamp runEndTime) {
		this.runEndTime = runEndTime;
	}

	public Date getPlanStartDate() {
		return planStartDate;
	}

	public void setPlanStartDate(Date planStartDate) {
		this.planStartDate = planStartDate;
	}

	public Date getPlanEndDate() {
		return planEndDate;
	}

	public void setPlanEndDate(Date planEndDate) {
		this.planEndDate = planEndDate;
	}

	public Integer getTestStatus() {
		return testStatus;
	}

	public void setTestStatus(Integer testStatus) {
		this.testStatus = testStatus;
	}

	public Long getCreateUserId() {
		return createUserId;
	}

	public void setCreateUserId(Long createUserId) {
		this.createUserId = createUserId;
	}

	public Timestamp getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Timestamp createTime) {
		this.createTime = createTime;
	}

	public String getTaskCaseIds() {
		return taskCaseIds;
	}

	public void setTaskCaseIds(String taskCaseIds) {
		this.taskCaseIds = taskCaseIds;
	}

	public String getTaskDeviceIds() {
		return taskDeviceIds;
	}

	public void setTaskDeviceIds(String taskDeviceIds) {
		this.taskDeviceIds = taskDeviceIds;
	}

	public String getPlanStartDateStr() {
		if(this.planStartDate != null)
			return DateFormatUtils.format(this.planStartDate, "yyyy-MM-dd");
		return "";
	}

	public void setPlanStartDateStr(String planStartDateStr) {
		this.planStartDateStr = planStartDateStr;
	}

	public String getPlanEndDateStr() {
		if(this.planEndDate != null)
			return DateFormatUtils.format(this.planEndDate, "yyyy-MM-dd");
		return "";
	}

	public void setPlanEndDateStr(String planEndDateStr) {
		this.planEndDateStr = planEndDateStr;
	}

	public String getAppName() {
		return appName;
	}

	public void setAppName(String appName) {
		this.appName = appName;
	}

}
